﻿<td class="width50px" data-bind="text: Id"></td>
<td class="width250px">
    <input type="text" data-bind="value: Name" />
    <br />
    <span data-bind="validationMessage: Name" class="error"></span>
</td>
<td class="width250px">
    <select data-bind="options: $parent.InputTypes,
                                            optionsText: 'Name',
                                            value: InputType"></select>
</td>
<td>
    <!-- ko ifnot: IsNew -->
    <span data-bind="text: ParameterType"></span>
    <!-- /ko -->

    <!-- ko if: IsNew() -->
    <select data-bind="options: $parent.ParameterTypes,
                        value: ParameterType"></select>
    <!-- /ko -->
</td>
<td>
    <button data-bind="click: $parent.SaveParameter">Save</button>
    &nbsp;&nbsp;
    <button data-bind="click: $parent.Cancel">Cancel</button>
</td>